package lu.med.praxiswahl.wahlumed.client.ordonancen;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import lu.med.praxiswahl.wahlumed.client.utilities.UniCode;

/**
 * 
 * @author Lars Holger Roth
 */
class OrdActionListener implements ActionListener {
	private OrdonancenPanel o;

	public OrdActionListener(OrdonancenPanel o) {
		this.o = o;
	}

	public void actionPerformed(ActionEvent e) {
		if (e.getActionCommand().equals("Text l" + UniCode.getoe() + "schen")) {
			o.clearExtraView();
		} else if (e.getActionCommand().equals("Drucken")) {
			o.printExtraView();
		} else if (e.getActionCommand().equals("Speichern")) {
			o.saveExtraView();
		}
	}
}